<template>
	<view class="container container333638">
		<!-- #ifdef MP-WEIXIN -->
		<u-navbar :isFixed="true" :isMarginRight="false" :borderBottom="false" title="" :background="{}" :backTextStyle="{ color: 'inherit' }" backIconColor="#fff" titleColor="inherit" :isHome="false" :isBack="false">
			<view class="flex align-center diygw-text-md text-bold align-center flex-nowrap diygw-col-24"> </view>
		</u-navbar>
		<!--  #endif -->
		<view class="flex diygw-col-24 flex-direction-column items-start flex-nowrap flex73-clz">
			<view class="flex flex-wrap diygw-col-24 items-center flex74-clz">
				<image :src="userInfo.avatar || '/static/avatar.png'" class="image8-size diygw-image diygw-col-0 image8-clz" mode="widthFix"></image>
				<view class="flex flex-wrap diygw-col-0 justify-between flex3-clz">
					<text class="diygw-text-line1 diygw-col-0 text5-clz">
						{{ userInfo.nickname || '请先登录' }}
					</text>
				</view>
			</view>
			<view class="flex flex-wrap diygw-col-24 flex-direction-column flex-clz">
				<view class="flex flex-wrap diygw-col-24">
					<view class="flex flex-wrap diygw-col-0 flex-direction-column items-center flex17-clz" @tap="navigateTo" data-type="page" data-url="/pages/cms/cate">
						<image src="/static/sc.png" class="image7-size diygw-image diygw-col-0" mode="widthFix"></image>
						<text class="diygw-text-line1 diygw-col-0"> 我的收藏 </text>
					</view>
					<view class="flex flex-wrap diygw-col-0 flex-direction-column items-center flex25-clz" @tap="navigateTo" data-type="page" data-url="/pages/msg/index">
						<image src="/static/yy.png" class="image10-size diygw-image diygw-col-0" mode="widthFix"></image>
						<text class="diygw-text-line1 diygw-col-0"> 我的预约 </text>
					</view>
					<view class="flex flex-wrap diygw-col-0 flex-direction-column items-center flex26-clz" @tap="navigateTo" data-type="page" data-url="/pages/article" data-id="1">
						<image src="/static/gy.png" class="image11-size diygw-image diygw-col-0" mode="widthFix"></image>
						<text class="diygw-text-line1 diygw-col-0"> 关于我们 </text>
					</view>
				</view>
			</view>
			<view class="flex flex-wrap diygw-col-24 flex-direction-column flex1-clz">
				<view class="flex flex-wrap diygw-col-24">
					<view class="flex flex-wrap diygw-col-24 items-center flex2-clz" @tap="navigateTo" data-type="phone" data-phone="15913132246">
						<image src="/static/kfdh.png" class="image17-size diygw-image diygw-col-0" mode="widthFix"></image>
						<text class="diygw-text-line1 diygw-col-0 text-clz"> 客服电话 </text>
					</view>
					<view class="flex flex-wrap diygw-col-24 items-center flex30-clz" @tap="navigateTo" data-type="page" data-url="/pages/msg/edit">
						<image src="/static/fkjl.png" class="image19-size diygw-image diygw-col-0" mode="widthFix"></image>
						<text class="diygw-text-line1 diygw-col-0 text21-clz"> 在线预约 </text>
					</view>
					<view class="flex flex-wrap diygw-col-24 items-center flex5-clz" @tap="navigateTo" data-type="page" data-url="/pages/article" data-id="1">
						<image src="/static/gy.png" class="image-size diygw-image diygw-col-0" mode="widthFix"></image>
						<text class="diygw-text-line1 diygw-col-0 text1-clz"> 关于我们 </text>
					</view>
				</view>
			</view>
			<view v-if="userInfo.username == 'admin'" class="flex flex-wrap diygw-col-24 flex-direction-column flex7-clz">
				<text class="diygw-col-24 text17-clz"> 管理员管理功能 </text>
				<view class="flex flex-wrap diygw-col-24">
					<view class="flex flex-wrap diygw-col-6 flex-direction-column items-center" @tap="navigateTo" data-type="page" data-url="/pages/cms/cate">
						<image src="/static/cl.png" class="image2-size diygw-image diygw-col-0 image2-clz" mode="widthFix"></image>
						<text class="diygw-text-line1 diygw-col-0 text3-clz"> 我的收藏 </text>
					</view>
					<view class="flex flex-wrap diygw-col-6 flex-direction-column items-center" @tap="navigateTo" data-type="page" data-url="/pages/cms/article">
						<image src="/static/zxxjsbbf.png" class="image9-size diygw-image diygw-col-0 image9-clz" mode="widthFix"></image>
						<text class="diygw-text-line1 diygw-col-0 text11-clz"> 文章管理 </text>
					</view>
					<view class="flex flex-wrap diygw-col-6 flex-direction-column items-center" @tap="navigateTo" data-type="page" data-url="/pages/cms/product">
						<image src="/static/zxxjsbbf.png" class="image13-size diygw-image diygw-col-0 image13-clz" mode="widthFix"></image>
						<text class="diygw-text-line1 diygw-col-0 text14-clz"> 产品管理 </text>
					</view>
					<view class="flex flex-wrap diygw-col-6 flex-direction-column items-center" @tap="navigateTo" data-type="page" data-url="/pages/cms/swiper">
						<image src="/static/cb.png" class="image14-size diygw-image diygw-col-0 image14-clz" mode="widthFix"></image>
						<text class="diygw-text-line1 diygw-col-0 text15-clz"> 轮播管理 </text>
					</view>
					<view class="flex flex-wrap diygw-col-6 flex-direction-column items-center" @tap="navigateTo" data-type="page" data-url="/pages/cms/notice">
						<image src="/static/cb.png" class="image15-size diygw-image diygw-col-0 image15-clz" mode="widthFix"></image>
						<text class="diygw-text-line1 diygw-col-0 text16-clz"> 消息管理 </text>
					</view>
				</view>
			</view>
		</view>
		<view class="flex flex-wrap diygw-col-24 items-end diygw-bottom flex6-clz">
			<view class="flex flex-wrap diygw-col-6 flex-direction-column items-center flex8-clz" @tap="navigateTo" data-type="page" data-url="/pages/index" data-redirect="1">
				<view class="flex flex-wrap diygw-col-0 flex-direction-column items-center">
					<image src="/static/sy3.png" class="image1-size diygw-image diygw-col-0" mode="widthFix"></image>
				</view>
				<text class="diygw-text-line1 diygw-col-0"> 首页 </text>
			</view>
			<view class="flex flex-wrap diygw-col-6 flex-direction-column items-center flex10-clz" @tap="navigateTo" data-type="page" data-url="/pages/products" data-redirect="1">
				<view class="flex flex-wrap diygw-col-0 flex-direction-column items-center">
					<image src="/static/cp1.png" class="image3-size diygw-image diygw-col-0" mode="widthFix"></image>
				</view>
				<text class="diygw-text-line1 diygw-col-0"> 产品 </text>
			</view>
			<view class="flex flex-wrap diygw-col-6 flex-direction-column items-center flex13-clz" @tap="navigateTo" data-type="page" data-url="/pages/msg/edit">
				<image src="/static/fb.png" class="image6-size diygw-image diygw-col-0 image6-clz" mode="widthFix"></image>
				<text class="diygw-text-line1 diygw-col-0 text6-clz"> 在线预约 </text>
			</view>
			<view class="flex flex-wrap diygw-col-6 flex-direction-column items-center flex14-clz" @tap="navigateTo" data-type="page" data-url="/pages/articles" data-redirect="1">
				<view class="flex flex-wrap diygw-col-0 flex-direction-column items-center">
					<text class="diygw-text-line1 diygw-col-0 animate__animated animate__heartBeat animate__infinite text7-clz"> </text>
					<image src="/static/xw1.png" class="image4-size diygw-image diygw-col-0" mode="widthFix"></image>
				</view>
				<text class="diygw-text-line1 diygw-col-0"> 新闻资讯 </text>
			</view>
			<view class="flex flex-wrap diygw-col-6 flex-direction-column items-center flex15-clz">
				<view class="flex flex-wrap diygw-col-0 flex-direction-column items-center">
					<image src="/static/wd1.png" class="image5-size diygw-image diygw-col-0" mode="widthFix"></image>
				</view>
				<text class="diygw-text-line1 diygw-col-0 text9-clz"> 我的 </text>
			</view>
		</view>
		<view class="clearfix"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				//用户全局信息
				userInfo: {},
				//页面传参
				globalOption: {},
				//自定义全局变量
				globalData: {}
			};
		},
		onShow() {
			this.setCurrentPage(this);
		},
		onLoad(option) {
			this.setCurrentPage(this);
			if (option) {
				this.setData({
					globalOption: this.getOption(option)
				});
			}

			this.init();
		},
		methods: {
			async init() {
				await this.isloginFunction();
			},
			// 判断是否登录 自定义方法
			async isloginFunction(param) {
				let thiz = this;
				if (!this.$session.getToken()) {
					//比如未登录，转身到其他页面等
					this.showToast('请先登录');
					this.navigateTo({
						type: 'page',
						url: 'login'
					});
					return;
				}
			}
		}
	};
</script>

<style lang="scss" scoped>
	.flex73-clz {
		margin-left: 10rpx;
		padding-top: 20rpx;
		padding-left: 20rpx;
		width: calc(100% - 10rpx - 10rpx) !important;
		padding-bottom: 20rpx;
		margin-top: 10rpx;
		margin-bottom: 10rpx;
		margin-right: 10rpx;
		padding-right: 20rpx;
	}
	.flex74-clz {
		margin-left: 0rpx;
		width: calc(100% - 0rpx - 0rpx) !important;
		margin-top: 10rpx;
		margin-bottom: 10rpx;
		margin-right: 0rpx;
	}
	.image8-clz {
		border-bottom-left-radius: 120rpx;
		overflow: hidden;
		border-top-left-radius: 120rpx;
		border-top-right-radius: 120rpx;
		border-bottom-right-radius: 120rpx;
	}
	.image8-size {
		height: 96rpx !important;
		width: 96rpx !important;
	}
	.flex3-clz {
		padding-top: 10rpx;
		flex: 1;
		padding-left: 10rpx;
		padding-bottom: 10rpx;
		padding-right: 10rpx;
	}
	.text5-clz {
		font-weight: bold;
		font-size: 40rpx !important;
	}
	.flex-clz {
		padding-top: 20rpx;
		border-bottom-left-radius: 12rpx;
		padding-left: 10rpx;
		padding-bottom: 20rpx;
		border-top-right-radius: 12rpx;
		margin-right: 0rpx;
		background-color: #ffffff;
		margin-left: 0rpx;
		overflow: hidden;
		width: calc(100% - 0rpx - 0rpx) !important;
		border-top-left-radius: 12rpx;
		margin-top: 20rpx;
		border-bottom-right-radius: 12rpx;
		margin-bottom: 20rpx;
		padding-right: 10rpx;
	}
	.flex17-clz {
		flex: 1;
	}
	.image7-size {
		height: 72rpx !important;
		width: 72rpx !important;
	}
	.flex25-clz {
		flex: 1;
	}
	.image10-size {
		height: 72rpx !important;
		width: 72rpx !important;
	}
	.flex26-clz {
		flex: 1;
	}
	.image11-size {
		height: 72rpx !important;
		width: 72rpx !important;
	}
	.flex1-clz {
		padding-top: 10rpx;
		border-bottom-left-radius: 12rpx;
		padding-left: 10rpx;
		padding-bottom: 10rpx;
		border-top-right-radius: 12rpx;
		margin-right: 0rpx;
		background-color: #ffffff;
		margin-left: 0rpx;
		overflow: hidden;
		width: calc(100% - 0rpx - 0rpx) !important;
		border-top-left-radius: 12rpx;
		margin-top: 20rpx;
		border-bottom-right-radius: 12rpx;
		margin-bottom: 20rpx;
		padding-right: 10rpx;
	}
	.flex2-clz {
		margin-left: 10rpx;
		padding-top: 10rpx;
		padding-left: 10rpx;
		width: calc(100% - 10rpx - 10rpx) !important;
		padding-bottom: 10rpx;
		margin-top: 10rpx;
		margin-bottom: 10rpx;
		border-bottom: 2rpx solid #eee;
		margin-right: 10rpx;
		padding-right: 10rpx;
	}
	.image17-size {
		height: 60rpx !important;
		width: 60rpx !important;
	}
	.text-clz {
		padding-top: 10rpx;
		padding-left: 10rpx;
		padding-bottom: 10rpx;
		padding-right: 10rpx;
	}
	.flex30-clz {
		margin-left: 10rpx;
		padding-top: 10rpx;
		padding-left: 10rpx;
		width: calc(100% - 10rpx - 10rpx) !important;
		padding-bottom: 10rpx;
		margin-top: 10rpx;
		margin-bottom: 10rpx;
		border-bottom: 2rpx solid #eee;
		margin-right: 10rpx;
		padding-right: 10rpx;
	}
	.image19-size {
		height: 64rpx !important;
		width: 64rpx !important;
	}
	.text21-clz {
		padding-top: 10rpx;
		padding-left: 10rpx;
		padding-bottom: 10rpx;
		padding-right: 10rpx;
	}
	.flex5-clz {
		margin-left: 10rpx;
		padding-top: 10rpx;
		padding-left: 10rpx;
		width: calc(100% - 10rpx - 10rpx) !important;
		padding-bottom: 10rpx;
		margin-top: 10rpx;
		margin-bottom: 10rpx;
		border-bottom: 2rpx solid #eee;
		margin-right: 10rpx;
		padding-right: 10rpx;
	}
	.image-size {
		height: 64rpx !important;
		width: 64rpx !important;
	}
	.text1-clz {
		padding-top: 10rpx;
		padding-left: 10rpx;
		padding-bottom: 10rpx;
		padding-right: 10rpx;
	}
	.flex7-clz {
		padding-top: 10rpx;
		border-bottom-left-radius: 12rpx;
		padding-left: 10rpx;
		padding-bottom: 10rpx;
		border-top-right-radius: 12rpx;
		margin-right: 0rpx;
		background-color: #ffffff;
		margin-left: 0rpx;
		overflow: hidden;
		width: calc(100% - 0rpx - 0rpx) !important;
		border-top-left-radius: 12rpx;
		margin-top: 20rpx;
		border-bottom-right-radius: 12rpx;
		margin-bottom: 20rpx;
		padding-right: 10rpx;
	}
	.text17-clz {
		margin-left: 10rpx;
		padding-top: 10rpx;
		font-weight: bold;
		padding-left: 10rpx;
		width: calc(100% - 10rpx - 10rpx) !important;
		font-size: 28rpx !important;
		padding-bottom: 10rpx;
		margin-top: 10rpx;
		margin-bottom: 10rpx;
		margin-right: 10rpx;
		padding-right: 10rpx;
	}
	.image2-clz {
		border-bottom-left-radius: 120rpx;
		overflow: hidden;
		border-top-left-radius: 120rpx;
		border-top-right-radius: 120rpx;
		border-bottom-right-radius: 120rpx;
	}
	.image2-size {
		height: 80rpx !important;
		width: 80rpx !important;
	}
	.text3-clz {
		padding-top: 10rpx;
		padding-left: 10rpx;
		padding-bottom: 10rpx;
		padding-right: 10rpx;
	}
	.image9-clz {
		border-bottom-left-radius: 120rpx;
		overflow: hidden;
		border-top-left-radius: 120rpx;
		border-top-right-radius: 120rpx;
		border-bottom-right-radius: 120rpx;
	}
	.image9-size {
		height: 80rpx !important;
		width: 80rpx !important;
	}
	.text11-clz {
		padding-top: 10rpx;
		padding-left: 10rpx;
		padding-bottom: 10rpx;
		padding-right: 10rpx;
	}
	.image13-clz {
		border-bottom-left-radius: 120rpx;
		overflow: hidden;
		border-top-left-radius: 120rpx;
		border-top-right-radius: 120rpx;
		border-bottom-right-radius: 120rpx;
	}
	.image13-size {
		height: 80rpx !important;
		width: 80rpx !important;
	}
	.text14-clz {
		padding-top: 10rpx;
		padding-left: 10rpx;
		padding-bottom: 10rpx;
		padding-right: 10rpx;
	}
	.image14-clz {
		border-bottom-left-radius: 120rpx;
		overflow: hidden;
		border-top-left-radius: 120rpx;
		border-top-right-radius: 120rpx;
		border-bottom-right-radius: 120rpx;
	}
	.image14-size {
		height: 80rpx !important;
		width: 80rpx !important;
	}
	.text15-clz {
		padding-top: 10rpx;
		padding-left: 10rpx;
		padding-bottom: 10rpx;
		padding-right: 10rpx;
	}
	.image15-clz {
		border-bottom-left-radius: 120rpx;
		overflow: hidden;
		border-top-left-radius: 120rpx;
		border-top-right-radius: 120rpx;
		border-bottom-right-radius: 120rpx;
	}
	.image15-size {
		height: 80rpx !important;
		width: 80rpx !important;
	}
	.text16-clz {
		padding-top: 10rpx;
		padding-left: 10rpx;
		padding-bottom: 10rpx;
		padding-right: 10rpx;
	}
	.flex6-clz {
		border-top: 2rpx solid #e4e4e4;
		padding-top: 16rpx;
		border-bottom-left-radius: 0rpx;
		bottom: 0rpx;
		padding-left: 16rpx;
		padding-bottom: 16rpx;
		border-top-right-radius: 24rpx;
		background-color: #ffffff;
		box-shadow: 0rpx 4rpx 12rpx rgba(31, 31, 31, 0.16);
		overflow: visible;
		left: 0rpx;
		border-top-left-radius: 24rpx;
		border-bottom-right-radius: 0rpx;
		padding-right: 16rpx;
	}
	.flex8-clz {
		flex: 1;
	}
	.image1-size {
		height: 48rpx !important;
		width: 48rpx !important;
	}
	.flex10-clz {
		flex: 1;
	}
	.image3-size {
		height: 48rpx !important;
		width: 48rpx !important;
	}
	.flex13-clz {
		margin-left: 0rpx;
		flex: 1;
		width: calc(25% - 0rpx - 0rpx) !important;
		margin-top: -100rpx;
		margin-bottom: 0rpx;
		margin-right: 0rpx;
	}
	.image6-clz {
		border-bottom-left-radius: 120rpx;
		box-shadow: 0rpx 2rpx 10rpx 1px rgba(31, 31, 31, 0.16);
		overflow: hidden;
		border-top-left-radius: 120rpx;
		border-top-right-radius: 120rpx;
		border-bottom-right-radius: 120rpx;
	}
	.image6-size {
		height: 80rpx !important;
		width: 80rpx !important;
	}
	.text6-clz {
		margin-left: 0rpx;
		margin-top: 16rpx;
		margin-bottom: 0rpx;
		margin-right: 0rpx;
	}
	.flex14-clz {
		flex: 1;
	}
	.text7-clz {
		border: 2rpx solid #eee;
		border-bottom-left-radius: 40rpx;
		-webkit-animation-duration: 5000ms;
		color: #ffffff;
		animation-delay: 1000ms;
		-webkit-animation-delay: 1000ms;
		border-top-right-radius: 40rpx;
		right: -8rpx;
		background-color: rgba(255, 17, 17, 0.91);
		animation-duration: 5000ms;
		flex-shrink: 0;
		overflow: hidden;
		top: -8rpx;
		width: 16rpx !important;
		border-top-left-radius: 40rpx;
		border-bottom-right-radius: 40rpx;
		position: absolute;
		height: 16rpx !important;
	}
	.image4-size {
		height: 48rpx !important;
		width: 48rpx !important;
	}
	.flex15-clz {
		flex: 1;
	}
	.image5-size {
		height: 48rpx !important;
		width: 48rpx !important;
	}
	.text9-clz {
		color: #031aeb;
	}
	.container333638 {
		background-image: url(/static/loginbg.png);
		background-position: top center;
		background-size: cover;
		background-repeat: no-repeat;
	}
</style>
